package com.xhsj.user.sms.purchase.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xhsj.user.sms.purchase.entity.TbPurchaseOrderGoods;
import com.xhsj.user.sms.purchase.entity.TbPurchaseTaskList;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 采购订单-商品表 Mapper 接口
 * </p>
 *
 * @author suxiaolin
 * @since 2020-04-23
 */
@Mapper
public interface TbPurchaseOrderGoodsMapper extends BaseMapper<TbPurchaseOrderGoods> {

    /**
     * 通过订单id查询订单商品列表
     * @author 苏小林
     * @date 2020/4/28 16:05
     * @param: id
     * @return: java.util.List<com.xhsj.user.sms.purchase.entity.TbPurchaseOrderGoods>
     */
    List<TbPurchaseOrderGoods> getOrderGoodsByOrderId(@Param("id") String id);

    void delByOrderId(@Param("id") String id);

    List<TbPurchaseTaskList> getOrderGoodsListByTaskId(@Param("taskId") String taskId);

    // 获取入库信息
    List<Map<String, Object>> getInStorageByOrderId(@Param("purchaseOrderId") String purchaseOrderId);
}
